<div class="container main-content">
<h2><%= @pm.title %></h2>

<table id="messages">
  <tr>
  <td class="message_header" colspan="2"><%= @pm.created_at %></td>
</tr>
<tr>
  <td class="message_poster">
    <%= link_to @pm.sender.username, @pm.sender %> 
    <%= @pm.sender.membership.name %>
    
    <% if @pm.sender.photo? %>
      <%= image_tag @pm.sender.photo.url, :class => "message avatar" %>
    <% else %>
      <%= image_tag('avatars/default.png', :class => "message avatar")%>
    <% end %>
    
  </td>
  <td class="message"><%= raw parse_bbcode @pm.content %></td>
</tr>

</table>

<div class='admin_links'>	
	<%= link_to 'Odgovori', send_pm_path(@pm.from)+"?title=#{@pm.title}"%>
	<%= link_to 'Sve poruke', pms_path %>
</div>
	
</div>